<%-- 
    Document   : demo_ajax
    Created on : May 30, 2014, 6:35:42 PM
    Author     : bienphongvnn
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    <script src="Js/jquery-2.1.1.js" type="text/javascript"></script>
        
    </head>
    <body>
        <h1>Hello World!</h1>
        <button id="tuyen">click me!</button>
        <select id="data"></select>
    </body>
    <script>
        
        $(document).ready(function()
        {
            $("#tuyen").click(function()
            {
                $.get("TuyenController",
                    {
                       pa1 : "c"
                    },
                function(data,status)
                {
                  document.getElementById("data").innerHTML = data;
                });
            });
        });// Tu coi lai bai trc thu;
    </script>
</html>
